package com.riguz.forks.framework.route.impl;

import java.util.LinkedList;
import java.util.List;

class TreeNode<T> {
    int priority = 0;
    String path = "";
    String pattern = "";
    String paramName = "";
    
    T value = null;
    List<TreeNode<T>> children = new LinkedList<>();
    
    public TreeNode(String path){
        this.path = path;
    }
    
    public TreeNode(String path, T value){
        this.path = path;
        this.value = value;
    }
}
